class Argument {
  funArgument = null
  args = null
  typeClassifyArgument = {} //类型分类的参数
  constructor(funArgument) {
    this.funArgument = funArgument
    this.args = Array.from(funArgument)
    //先声明要的对象
    const typeClassifyArgument = {}
    for(let arg of this.args) {
      const argType = typeof arg
      if(!typeClassifyArgument[argType]) typeClassifyArgument[argType] = []
      typeClassifyArgument[argType].push(arg)
    }
    this.typeClassifyArgument = typeClassifyArgument
  }
  //
  getTypeValueByIndex(type, index = 0) {
    if(!this.typeClassifyArgument[type]) return undefined
    return this.typeClassifyArgument[type][index]
  }
}
//参数加工器

export default Argument